package sg.edu.nus.iss.jass.dto;

import java.util.ArrayList;

import sg.edu.nus.iss.jass.datastore.BaseDTO;
import sg.edu.nus.iss.jass.util.Util;

public class Resume extends BaseDTO {

	private JobSeeker personalData;

	private String jobSeekerId;

	private ArrayList<Skill> skillDetails;

	private String skillIds;

	private String resumeDesc;
	private String resumeName;

	
	
	public String getResumeName() {
		return resumeName;
	}


	public void setResumeName(String resumeName) {
		this.resumeName = resumeName;
	}


	

	
	/**
	 * @return the personalData
	 */
	public JobSeeker getPersonalData() {
	
		return personalData;
	}

	
	/**
	 * @param personalData the personalData to set
	 */
	public void setPersonalData(JobSeeker personalData) {
	
		this.personalData = personalData;
	}

	
	/**
	 * @return the jobSeekerId
	 */
	public String getJobSeekerId() {
	
		if(personalData != null){
			return personalData.getId();
		}
		if(!Util.isEmpty(jobSeekerId)) {
			return jobSeekerId;
		}
		return null;
	}

	
	/**
	 * @param jobSeekerId the jobSeekerId to set
	 */
	public void setJobSeekerId(String jobSeekerId) {
	
		this.jobSeekerId = jobSeekerId;
	}

	
	/**
	 * @return the skillDetails
	 */
	public ArrayList<Skill> getSkillDetails() {
	
		return skillDetails;
	}

	
	/**
	 * @param skillDetails the skillDetails to set
	 */
	public void setSkillDetails(ArrayList<Skill> skillDetails) {
	
		this.skillDetails = skillDetails;
	}

	
	/**
	 * @return the skillIds
	 */
	public String getSkillIds() {
		if(!Util.isEmpty(skillDetails)){
			return super.getIds(skillDetails);
		}
		if(!Util.isEmpty(skillIds)) {
			return skillIds;
		}
		return null;
	
	}

	
	/**
	 * @param skillIds the skillIds to set
	 */
	public void setSkillIds(String skillIds) {
	
		this.skillIds = skillIds;
	}

	
	
	/**
	 * @return the resumeDesc
	 */
	public String getResumeDesc() {
	
		return resumeDesc;
	}


	
	/**
	 * @param resumeDesc the resumeDesc to set
	 */
	public void setResumeDesc(String resumeDesc) {
	
		this.resumeDesc = resumeDesc;
	}


}
